<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="__TMPL__style/group-style.css" />
<link type="text/css" rel="stylesheet" href="__TMPL__style/supply-style.css" />
<style>

</style>
<!-- <link href="__TMPL__style/Common.css" rel="stylesheet" type="text/css" media="screen" />-->
<link href="__TMPL__style/jquery.msgbox.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
<!--<script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>-->
<!--<script type="text/javascript" src="/pw8/js/core/core.js"></script>-->
<script type="text/javascript" src="__TMPL__js/jquery.dragndrop.js"></script>	
<script type="text/javascript" src="__TMPL__js/jquery.msgbox.js"></script>
<title>{$title}搜索列表页-EHS中国</title>
</head>
<body>
 <layout name="Public:header0523" cache="1" />
<div class="main"> 
<div class="container">
<div class="path-sub-nav">您所在位置:<a href="/index.html">首页</a> &gt;符合<font style="color:red">"{$keyWord}"</font>关键词的"{$title}"搜索结果，共<span style="color:red">{$count}</span> 条记录</div><!--<div class="search-submenu"></div>-->
<div class="search-list">
	<div class="search-list-title">结果显示</div>
    <div class="search-member-cont">
	   <volist name='list' id='item'>
   	  	<dl>
       		<dt><a href="/main/public.php?s=/column/index/uid/{$item.uid}" target="_blank"><img src="{$item.icon}" width="90" height="90" /></a></dt>
            <dd>
            	<h4><a href="/main/public.php?s=/column/index/uid/{$item.uid}" target="_blank">{$item.username}</a></h4>
                <p>注册时间：<br /><?php echo date('Y-m-d',$item['regdate']);?></p>
                <div class="btn-add"> 
				<if condition="$item.isFriend eq false"><a href="#" id="add_{$item.uid}" onclick="return showBox({$item.uid},1);">加为好友</a>
				<else/>
				<a href="#" id="add_{$item.uid}" onclick="return showBox({$item.uid},1);" class="disabled">加为好友</a>
				</if>
				<a href="#" id="add_{$item.uid}" onclick="return showBox({$item.uid},2);">联系</a></div>
        	</dd>
        </dl>
		</volist>
		<div class="default_page" style="clear:both;padding:10px auto;margin:10px auto;text-align:center">{$page}</div>
        <div class="clear"></div>
    </div>
</div>
<div class="clear"></div>
</div>

<div class="footer">
    <layout name="Public:footer" cache="0" /></div>
 </div>

<script>
	  function showBox(id,type){
	    var url='';
		var title='';
	    if(type=='1'){
		   title='添加好友';
		  url='/main/public.php/circle/addFriendAjax/isAjax/1/uid/'+id;
		  }
		else if(type=='2'){
		  title='发送消息 ';
		  url='/main/public.php/circle/sendMessageAjax/isAjax/1/uid/'+id;
		 }
	    $mb = $.msgbox({
        height:250,
        width:450,
        content:{type:'iframe',content:url},
        title: title,
        closeIcon:{type:'icon',content:'__TMPL__/images/close.gif'}
       });
	  } 
</script>	  
</body>
</html>
